package com.example.mybatisdemo.mapper;

import com.example.mybatisdemo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserInfoXMLMapper {
    List<UserInfo> queryAllUser();

    //增
    Integer insertUser(UserInfo userInfo);

    //删
    Integer deleteUser(Integer id);

    //改
    Integer updateUser(UserInfo userInfo);

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> queryByCondition(UserInfo userInfo);

    Integer updateUserByCondition(UserInfo userInfo);

    void deleteByIds(List<Integer> ids);
}
